window.addEventListener('click', (ev) => {
  const target = ev.target as HTMLElement;
  const isMessage = target?.className?.includes?.('ant-message-notice');

  if (isMessage) {
    target.style.display = 'none';
  }
});
